home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 November / Maximum CD 2000 Nov.iso / AofE-Conquerers / age2xtrial.exe / CABFILE / MSGAME.CAB / Data / gamedata_x1.drs / Unnamed File 000006.bina < prev    next >
Text File  |  2000-07-18  |  4KB  |  224 lines

  1. (defrule
  2.     (true)
  3. =>
  4.     (set-strategic-number sn-number-boat-explore-groups 1)
  5.     (set-strategic-number sn-dock-defend-priority 1)
  6.     (disable-self)
  7. )
  8.  
  9. ;make docks
  10. (defrule
  11.     (building-type-count-total dock == 0)
  12.     (building-type-count-total town-center > 1)
  13.     (can-build dock)
  14. =>
  15.     (build dock)
  16. )
  17.  
  18. (defrule
  19.     (building-type-count-total dock < 2)
  20.     (goal sea-owner YES)
  21.     (can-build dock)
  22. =>
  23.     (build dock)
  24. )
  25.  
  26. (defrule
  27.     (building-type-count-total dock == 0)
  28.     (building-type-count-total market > 0)
  29.     (building-type-count-total blacksmith > 0)
  30.     (not (goal rush-control IMPERIAL) )
  31.     (can-build dock)
  32. =>
  33.     (build dock)
  34. )
  35.  
  36. (defrule
  37.     (goal 1 10)
  38.     (current-age >= feudal-age)
  39.     (building-type-count-total dock < 2)
  40.     (building-type-count-total market > 0)
  41.     (building-type-count-total blacksmith > 0)
  42.     (can-build-with-escrow dock)
  43.     (wood-amount > 400)
  44. =>
  45.     (release-escrow wood)
  46.     (build dock)
  47. )
  48.  
  49. (defrule
  50.     (current-age >= castle-age)
  51.     (wood-amount > 500)
  52.     (building-type-count-total dock < 2)
  53.     (can-build-with-escrow dock)
  54. =>
  55.     (release-escrow wood)
  56.     (build dock)
  57. )
  58.  
  59. (defrule
  60.     (goal 1 10)
  61.     (current-age == imperial-age)
  62.     (wood-amount > 500)
  63.     (building-type-count-total dock < 3)
  64.     (can-build-with-escrow dock)
  65. =>
  66.     (release-escrow wood)
  67.     (build dock)
  68. )
  69.  
  70. #load-if-defined DEFEND-WONDER
  71. (defrule
  72.     (or
  73.         (and
  74.             (goal 1 10)
  75.             (building-type-count-total dock < 2)
  76.         )
  77.         (and
  78.             (goal 1 1)
  79.             (building-type-count-total dock == 0)
  80.         )
  81.     )
  82.     (can-build-with-escrow dock)
  83. =>
  84.     (release-escrow wood)
  85.     (build dock)
  86. )
  87. #end-if
  88.  
  89. #load-if-not-defined DEFEND-WONDER
  90. #load-if-not-defined DEATH-MATCH
  91. ;build fishing ships in dark age
  92.  
  93. (defrule
  94.     (current-age == dark-age)
  95.     (building-type-count-total lumber-camp > 0)
  96.     (civilian-population < civ-dark)
  97.     (or
  98.         (unit-type-count-total fishing-ship < five-percent-pop)
  99.         (and
  100.             (goal rush-control BOOMING)
  101.             (unit-type-count-total fishing-ship < ten-percent-pop)
  102.         )
  103.     )
  104.     (nand
  105.         (goal rush-control RUSHING)
  106.         (building-type-count-total barracks == 0)
  107.     )
  108.     (can-train fishing-ship)
  109. =>
  110.     (train fishing-ship)
  111. )
  112.  
  113. ;feudal boats
  114. (defrule
  115.     (goal secondary-build 1)
  116.     (current-age == feudal-age)
  117.     (building-type-count-total blacksmith > 0)
  118.     (civilian-population < civ-feudal)
  119.     (unit-type-count-total fishing-ship < ten-percent-pop)
  120.     (unit-type-count-total galley > 0)
  121.     (can-train fishing-ship)
  122. =>
  123.     (train fishing-ship)
  124. )
  125.  
  126. ;castle boats
  127. (defrule
  128.     (goal secondary-build 1)
  129.     (building-type-count-total siege-workshop > 0)
  130.     (civilian-population < civ-castle)
  131.     (unit-type-count-total fishing-ship < ten-percent-pop)
  132.     (or
  133.         (current-age == castle-age)
  134.         (and
  135.             (current-age == imperial-age)
  136.             (current-age-time < 2400)
  137.         )
  138.     )
  139.     (can-train fishing-ship)
  140. =>
  141.     (train fishing-ship)
  142. )
  143.  
  144. #end-if
  145. #end-if
  146.  
  147. (defrule
  148.     (population >= pop-cap)
  149.     (unit-type-count fishing-ship > ten-percent-pop)
  150. =>
  151.     (delete-unit fishing-ship)
  152. )
  153.  
  154. (defrule
  155.     (population >= pop-cap)
  156.     (current-age == imperial-age)
  157.     (current-age-time > 2400)
  158.     (unit-type-count fishing-ship > 0)
  159. =>
  160.     (delete-unit fishing-ship)
  161. )
  162.  
  163. ;start the run-through for military ships & rulers of the sea
  164. (defrule
  165.     (not (goal 2 NO) )
  166. =>
  167.     (set-goal 2 NO)
  168. )
  169.  
  170. (defrule
  171.     (current-age >= castle-age)
  172.     (warboat-count > ten-percent-pop)
  173.     (cc-players-unit-type-count every-enemy galley-line < 4)
  174.     (cc-players-unit-type-count every-enemy cannon-galleon-line < 2)
  175.     (cc-players-unit-type-count every-enemy fire-ship-line < 4)
  176.     (cc-players-unit-type-count every-enemy longboat-line < 3)
  177.     (cc-players-unit-type-count every-enemy turtle-ship-line < 1)
  178. =>
  179.     (set-goal 2 YES)
  180. )
  181.  
  182. ;start the run-through for military ships
  183. (defrule
  184.     (true)
  185. =>
  186.     (set-goal make-warboat NO)
  187. )
  188.  
  189. (defrule
  190.     (current-age == feudal-age)
  191.     (building-type-count dock > 0)
  192.     (building-type-count-total market > 0)
  193.     (building-type-count-total blacksmith > 0)
  194. =>
  195.     (set-goal make-warboat YES)
  196. )
  197.  
  198. (defrule
  199.     (current-age == castle-age)
  200.     (building-type-count dock > 0)
  201.     (or
  202.         (building-type-count-total castle > 0)
  203.         (and
  204.             (building-type-count-total university > 0)
  205.             (building-type-count-total siege-workshop > 0)
  206.         )
  207.     )
  208. =>
  209.     (set-goal make-warboat YES)
  210. )
  211.  
  212. (defrule
  213.     (current-age == imperial-age)
  214.     (building-type-count dock > 0)
  215. =>
  216.     (set-goal make-warboat YES)
  217. )
  218.  
  219. (defrule
  220.     (building-type-count dock > 0)
  221.     (warboat-count < five-percent-pop)
  222. =>
  223.     (set-goal make-warboat YES)
  224. )